home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Mania 4
/
MacMania 4.toast
/
/
Tools&Utilities
/
MathPad 2.4
/
intro help
/
intro help.rsrc
/
TEXT_133_Formulas.txt
< prev
next >
Wrap
Text File
|
1996-03-26
|
381b
|
15 lines
-- Type in formulas, plug in numbers and hit enter to see the result
time = distance/speed
speed = 50 -- mph
distance = 187 -- miles
time:3.740; -- hours
-- Functions are similar but use parameters
tim(dist,spd) = dist/spd
tim(187,50):3.740
-- One reason to use functions is to allow using the same formula more than once in an expression
tim(187,50) + tim(70,30):6.073